package org.example;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo( name = "cat", defaultPhase = LifecyclePhase.CLEAN )
public class CatMojo extends AbstractMojo {

    /**
     * 传递 configure 参数的
     * */
    @Parameter
    private String name;

    public void execute() throws MojoExecutionException {
        System.out.println("猫子。。。。" + name);
    }
}
